<?php

namespace appcode\enum;

require_once("IEnumBaseClass.php");

class Visibility implements IEnumBaseClass {
    const V_public = "public";
    const V_private = "private";
    const V_removed = "removed";

    public static function GetArray() {
        return array(1 => self::V_public, 2 => self::V_private, 3 => self::V_removed);
    }

    public static function GetById($id){
        return EnumBaseClassHelper::GetById(self::GetArray(), $id);
    }

    public static function GetByName($name) {
        return EnumBaseClassHelper::GetByName(self::GetArray(), $name);
    }

    public static function GetDefaultId() {
        return EnumBaseClassHelper::GetDefaultId(self::GetArray(), self::GetDefaultName());
    }

    public static function GetDefaultName() {
        return self::V_public;
    }
}
